Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Zakączenie </table>
ciapus4
post
Post #1





Grupa: Zarejestrowani
Postów: 140
Pomógł: 0
Dołączył: 25.08.2012

Ostrzeżenie: (0%)
-----


Witam wszystkich, mam mały problem ze stronką którą modyfikuje, a zarazem uczę się, jest sobie menu restauracji po prawej stronie jedne dania, a polewej drugie dania i teraz pod tym na środku chcę dodać kontakt, jednak jak dodaję
Kod
<center>opis i nr telefonu,</center>
, to i tak te informacje ustawiają się w tabeli po lewej stronie, jak zakączyć tabel.


pozdrawiam
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi (1 - 13)
ethann
post
Post #2





Grupa: Zarejestrowani
Postów: 56
Pomógł: 18
Dołączył: 7.04.2012

Ostrzeżenie: (0%)
-----


Słownik..

Poza tym podaj kod tabelki, nikt nie wie w jaki sposób to zapisałeś.

  1. <tr>
  2. <td>danie 1</td><td>danie 2</td>
  3. </tr>
  4. <tr>
  5. <td>danie 3</td><td>danie 4</td>
  6. </tr>
  7. <tr>
  8. <td colspan="2">kontakt</td>
  9. </tr>

Go to the top of the page
+Quote Post
ciapus4
post
Post #3





Grupa: Zarejestrowani
Postów: 140
Pomógł: 0
Dołączył: 25.08.2012

Ostrzeżenie: (0%)
-----


  1. application/x-httpd-php menu.php
  2. ISO-8859 text
  3.  
  4. <? require_once('tpl_header.php'); ?>
  5.  
  6. <br />
  7. <br />
  8. <img src="gfx/menu_obiady_head.jpg" alt="" width="700" height="168" />
  9. <br />
  10.  
  11. <div class="dania" style="margin-left: 10px">
  12. <strong><u>SPAGHETTI</u></strong>
  13. <tr><td class="d">SPAGHETTI&nbsp;BOLOGNESE</td><td class="w">&nbsp;</td><td class="c">15,00z</td></tr>
  14. <tr><td class="d">SPAGHETTI&nbsp;CARBONARA</td><td class="w">&nbsp;</td><td class="c">16,00z</td></tr>
  15. </table>
  16.  
  17. <strong><u>ZUPY (w cen zupy wliczone jest opakowanie)</u></strong>
  18. <tr><td class="d">ROSӣ Z MAKARONEM</td><td class="w">400 ml</td><td class="c">6,00z</td></tr>
  19. <tr><td class="d">POMIDOROWA Z MAKARONEM LUB RYEM</td><td class="w">400 ml</td><td class="c">6,00z</td></tr>
  20. <tr><td class="d">KAPUNIAK</td><td class="w">400 ml</td><td class="c">6,00z</td></tr>
  21. <tr><td class="d">OGRKOWA</td><td class="w">400 ml</td><td class="c">6,00z</td></tr>
  22. <tr><td class="d">PIECZARKOWA</td><td class="w">400 ml</td><td class="c">6,00z</td></tr>
  23. <tr><td class="d">UREK Z KIEBAS</td><td class="w">400 ml</td><td class="c">7,00z</td></tr>
  24. <tr><td class="d">KODUNY LITEWSKIE <br />W ROSOLE</td><td class="w">400 ml</td><td class="c">7,00z</td></tr>
  25. <tr><td class="d">KODUNY LITEWSKIE <br />W BARSZCZU</td><td class="w">400 ml</td><td class="c">7,00z</td></tr>
  26. <tr><td class="d">FLACZKI WOOWE</td><td class="w">400 ml</td><td class="c">8,00z</td></tr>
  27. <tr><td class="d">GULASZOWA</td><td class="w">400 ml</td><td class="c">8,00z</td></tr>
  28. <tr><td class="d">BARSZCZ CZERWONY <br />Z KROKIETEM</td><td class="w">400 ml</td><td class="c">9,50z</td></tr>
  29. <tr><td class="d" style="color: #117732;"><u>w sezonie letnim:</u></td><td class="w">&nbsp;</td><td class="c">&nbsp;</td></tr>
  30. <tr><td class="d">BOTWINA</td><td class="w">400 ml</td><td class="c">6,00z</td></tr>
  31. <tr><td class="d">CHODNIK</td><td class="w">400 ml</td><td class="c">7,50z</td></tr>
  32. <tr><td class="d">KAPUNIAK Z MODEJ KAPUSTY</td><td class="w">400 ml</td><td class="c">6,00z</td></tr>
  33. </table>
  34.  
  35. <strong><u>DANIA Z DROBIU</u></strong>
  36. <tr><td class="d">MEDALION Z PIERSI KURCZAKA</td><td class="w">180 g</td><td class="c">11,00z</td></tr>
  37. <tr><td class="d">DE VOLAILLE</td><td class="w">180 g</td><td class="c">12,00z</td></tr>
  38. <tr><td class="d">MIELONY Z INDYKA </td><td class="w">120 g</td><td class="c">9,00z</td></tr>
  39. <tr><td class="d">KOTLET SZWAJCARSKI <br />Z SZYNK I SEREM </td><td class="w">200 g</td><td class="c">14,00z</td></tr>
  40. </table>
  41.  
  42. <strong><u>DANIA Z WOOWINY</u></strong>
  43. <tr><td class="d">ZRAZ WOOWY ZAWIJANY W&nbsp;SOSIE WASNYM </td><td class="w">150 g</td><td class="c">13,00z</td></tr>
  44. <tr><td class="d">OZR W SOSIE </td><td class="w">150 g</td><td class="c">10,00z</td></tr>
  45. </table>
  46.  
  47. <strong><u>DANIA Z CIELCINY</u></strong>
  48. <tr><td class="d">SZNYCEL WIEDESKI </td><td class="w">160 g</td><td class="c">15,00z</td></tr>
  49. <tr><td class="d">GULASZ </td><td class="w">200 g</td><td class="c">12,00z</td></tr>
  50. </table>
  51.  
  52. <strong><u>DANIA Z WIEPRZOWINY</u></strong>
  53. <tr><td class="d">KOTLET SCHABOWY </td><td class="w">200 g</td><td class="c">11,50z</td></tr>
  54. <tr><td class="d">PIECZE Z KARCZKU W SOSIE </td><td class="w">150 g</td><td class="c">10,50z</td></tr>
  55. <tr><td class="d">BRYZOL Z KARCZKU </td><td class="w">150 g</td><td class="c">11,00z</td></tr>
  56. <tr><td class="d">WTRBKA Z CEBUL </td><td class="w">180 g</td><td class="c">9,00z</td></tr>
  57. <tr><td class="d">GO��BEK W SOSIE POMIDOROWYM </td><td class="w">220 g</td><td class="c">11,00z</td></tr>
  58. <tr><td class="d">GOLONKA BEZ KOCI </td><td class="w">w/w 100 g</td><td class="c">6,00z</td></tr>
  59. <tr><td class="d">BITKA Z SZYNKI <br />W SOSIE WASNYM </td><td class="w">140 g</td><td class="c">11,00z</td></tr>
  60. <tr><td class="d">BIGOS </td><td class="w">250 g</td><td class="c">8,00z</td></tr>
  61. <tr><td class="d">KOTLET MIELONY </td><td class="w">130 g</td><td class="c">9,00z</td></tr>
  62. <tr><td class="d">PIEROGI Z MISEM </td><td class="w">300 g</td><td class="c">9,50z</td></tr>
  63. </table>
  64.  
  65. <strong><u>SHOARMA</u></strong>
  66. <tr><td class="d">SHOARMA DROBIOWA LUB WIEPRZOWA + <font color="green">DODATKI</font> DO WYBORU </td><td class="w">500 g</td><td class="c">18,00z</td></tr>
  67. <tr><td class="d">SHOARMA DROBIOWA LUB WIEPRZOWA Z SEREM + <font color="green">DODATKI</font> DO WYBORU </td><td class="w">500 g</td><td class="c">20,00z</td></tr>
  68. </table>
  69.  
  70. <br/>
  71. <br/>
  72.  
  73.  
  74.  
  75.  
  76.  
  77.  
  78. </table>
  79.  
  80. <strong><u>NAPOJE</u></strong>
  81. <tr><td class="d">COCA COLA, FANTA, SPRITE </td><td class="w">0,2 l</td><td class="c">3,00z</td></tr>
  82. <tr><td class="d">COCA COLA, FANTA, SPRITE, NESTEA </td><td class="w">0,5 l</td><td class="c">4,50z</td></tr>
  83. <tr><td class="d">SOKI: POMARACZOWY, JABKOWY, MULTIWITAMINA </td><td class="w">330 ml</td><td class="c">4,50z</td></tr>
  84. </table>
  85.  
  86. <strong><u>NAPOJE GORCE</u></strong>
  87. <tr><td class="d">HERBATA </td><td class="w">&nbsp;</td><td class="c">3,50z</td></tr>
  88. <tr><td class="d">KAWA </td><td class="w">&nbsp;</td><td class="c">4,50z</td></tr></table>
  89.  
  90.  
  91. <br/>
  92. <br/>
  93.  
  94.  
  95.  
  96.  
  97. <? require_once('tpl_footer.php'); ?>
  98.  


Oczywiście skruciłem kod bo był za długi post.
Go to the top of the page
+Quote Post
@rtur
post
Post #4





Grupa: Zarejestrowani
Postów: 254
Pomógł: 3
Dołączył: 23.02.2006

Ostrzeżenie: (0%)
-----


A gdzie chcesz wstawić ten tekst z kontaktem?
Go to the top of the page
+Quote Post
ciapus4
post
Post #5





Grupa: Zarejestrowani
Postów: 140
Pomógł: 0
Dołączył: 25.08.2012

Ostrzeżenie: (0%)
-----


Na dole pod całym menu, chciałem zrobić coś takiego.
  1. <center><strong><u><color font="red" tu info</u></strong></font></center>


jakoś tak, jak źle to proszę o podpowiedz (IMG:style_emoticons/default/oneeyedsmiley02.png)
Go to the top of the page
+Quote Post
kamil4u
post
Post #6





Grupa: Zarejestrowani
Postów: 2 350
Pomógł: 512
Dołączył: 4.01.2009
Skąd: Wrocław / Świdnica

Ostrzeżenie: (0%)
-----


Wypadałoby najpierw nauczyć się polskiego, a dopiero potem innych języków!

Cytat
skruciłem
skróciłem
Cytat
Zakączenie
zakończenie

Poza tym:
- nie używa się już znaczników center, u - zamiast tego korzystamy z CSS
- strony nie opiera się już na tabelkach, a na innych elementach HTML i właśnie CSS

Cytat
mam mały problem ze stronką którą modyfikuje, a zarazem uczę się

Jeżeli chcesz się uczyć i ma to być zabawa na dłużej, to poczytaj o tym co napisałem powyżej. Jeżeli tylko zapoznanie się z HTML, żeby zedytować stronę to się tym nie przejmuj, bo czekałoby Cię strasznie dużo roboty, żeby się tego nauczyć. Praktycznie cała strona byłaby do przepisania.

Jednak zachęcam do nauki! W razie szczegółowych pytań odnoście poprawności samej struktury HTML pytaj - postaram się pomóc (IMG:style_emoticons/default/smile.gif)

--edit--
Co do problemu umieść kod online. Na jakimś serwerze lub tu http://jsfiddle.net/ - będzie znacznie łatwiej pomóc

Ten post edytował kamil4u 25.08.2012, 14:13:42
Go to the top of the page
+Quote Post
ciapus4
post
Post #7





Grupa: Zarejestrowani
Postów: 140
Pomógł: 0
Dołączył: 25.08.2012

Ostrzeżenie: (0%)
-----


Dzięki za sugestie, link

Ten post edytował ciapus4 25.08.2012, 14:35:12
Go to the top of the page
+Quote Post
kamil4u
post
Post #8





Grupa: Zarejestrowani
Postów: 2 350
Pomógł: 512
Dołączył: 4.01.2009
Skąd: Wrocław / Świdnica

Ostrzeżenie: (0%)
-----


O to chodzi? http://jsfiddle.net/53hsJ/1/
Go to the top of the page
+Quote Post
ciapus4
post
Post #9





Grupa: Zarejestrowani
Postów: 140
Pomógł: 0
Dołączył: 25.08.2012

Ostrzeżenie: (0%)
-----


(IMG:http://obrazki.elektroda.pl/4449940500_1345916709.jpg)

Skopiowałem i dalej z lewej (IMG:style_emoticons/default/nerdsmiley.png)

orginał z .php

(IMG:http://obrazki.elektroda.pl/5382988800_1345917014.jpg)

Ten post edytował ciapus4 25.08.2012, 18:51:17
Go to the top of the page
+Quote Post
kamil4u
post
Post #10





Grupa: Zarejestrowani
Postów: 2 350
Pomógł: 512
Dołączył: 4.01.2009
Skąd: Wrocław / Świdnica

Ostrzeżenie: (0%)
-----


Daj link do strony z CSS-em - taki gdzie jest wygląd. I opisz dokładniej.
Go to the top of the page
+Quote Post
ciapus4
post
Post #11





Grupa: Zarejestrowani
Postów: 140
Pomógł: 0
Dołączył: 25.08.2012

Ostrzeżenie: (0%)
-----


CSS

Witam, proszę o dalszą o pomoc (IMG:style_emoticons/default/closedeyes.gif)

Witam, pomoże ktoś ? (IMG:style_emoticons/default/co_jest.gif)
Go to the top of the page
+Quote Post
b4rt3kk
post
Post #12





Grupa: Zarejestrowani
Postów: 1 933
Pomógł: 460
Dołączył: 2.04.2010
Skąd: Lublin

Ostrzeżenie: (0%)
-----


Mógłbyś otworzyć plik, który edytujesz, skopiować cały kod (CTRL+A), a następnie wkleić go tutaj na forum? Z tego co widzę masz niepozamykane divy i tabele, tylko nie wiem czy to całość kodu.
Go to the top of the page
+Quote Post
ciapus4
post
Post #13





Grupa: Zarejestrowani
Postów: 140
Pomógł: 0
Dołączył: 25.08.2012

Ostrzeżenie: (0%)
-----


Tujest cały kod
Go to the top of the page
+Quote Post
b4rt3kk
post
Post #14





Grupa: Zarejestrowani
Postów: 1 933
Pomógł: 460
Dołączył: 2.04.2010
Skąd: Lublin

Ostrzeżenie: (0%)
-----


Na samym końcu masz coś takiego:
  1. <br/>
  2. <br/>

zastąp to </table>:
  1. </div>

Teraz na samym dole dodaj coś takiego:
  1. <div style="margin: auto; text-align: center;">Tutaj wpisz ten text co go chcesz mieć po środku</div>
Go to the top of the page
+Quote Post

Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 25.08.2025 - 02:20